html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn,
em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
}

header {
    position: fixed;
    z-index: 20;
    width: 100%; height:40px;
    top: 0; left: 0; right: 0;
    background-color: #2A376E;
    box-shadow: 0 5px 10px #2A376E;
    text-align: center;
}

header img {
    padding-top: 2px;
}

#container {
    width: 100%; height: 100%;
}

#main {
    /*background-image: url(../img/background.jpg);*/
    width: 100%; height: 100%;
    position: relative;
    margin: 0;
    z-index: 5;
    overflow: hidden;
    background-image: -webkit-linear-gradient(bottom, white, rgba(255,255,255,0));
    background-image: -moz-linear-gradient(bottom, white, rgba(255,255,255,0));
    background-image: linear-gradient(bottom, white, rgba(255,255,255,0));
    -webkit-transition: background-color 1s;
    -moz-transition: background-color 1s;
    transition: background-color 1s;
}

.gradient1 {
    background-color: #FCFF90;
}

.gradient2 {
    background-color: #D3FF82;
}

#fbposts { 
    position: relative;
    width: 100%; height: 100%;
}

#fb-name {
    position: absolute;
    z-index: 9;
    border-width: 2px;
    /*border-style: inset;*/
    /*border-radius: 5px;*/
    border-color: #25315F;
    background-color: #3D509C;
    color: white;
    font-size: 17px;
    box-shadow: 0 -5px 5px #3D509C;
}

.bubble-content {
    padding-left: 5px;
    padding-right: 5px;
}

.img-size0 {
    height: 0px; width: 0px;
    margin-top: 0px;
    margin-left: 0px;
}

.img-size1 {
    height: 50px; width: 50px;
    margin-top: -25px;
    margin-left: -25px;
}

.img-size2 {
    height: 70px; width: 70px;
    margin-top: -35px;
    margin-left: -35px;
}

.img-size3 {
    height: 90px; width: 90px;
    margin-top: -40px;
    margin-left: -40px;
}

.img-size4 {
    height: 110px; width: 110px;
    margin-top: -55px;
    margin-left: -55px;
}

#fb-msg {
    border-left: 3px;
    border-right: 3px;
}

#likes-comments {
    text-align: right;
}

#profile-pic {
    box-shadow:0 0 15px 5px grey;
    -webkit-transition: box-shadow 0.3s linear, height 0.3s linear, width 0.3s linear, margin-top 0.3s linear, margin-left 0.3s linear;
    transition: box-shadow 0.3s linear, height 0.3s linear, width 0.3s linear, margin-top 0.3s linear, margin-left 0.3s linear;
}

#profile-pic img {
    height: inherit;
    width: inherit;
}

#fb-bubble {
    position: absolute;
    z-index: 10;
    /*background-color: white;*/
    font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
    background-color: #3D509C;
    color: white;
    font-size: 17px;
    border-width: 1px;
    /*border-style: outset;*/
    border-radius: 2px;
    max-width: 300px;
    box-shadow: 0 5px 5px #3D509C;
}

.visible {
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity 0.5s linear;
  transition: opacity 0.5s linear;
}
.hidden {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: visibility 0s 0.5s, opacity 0.5s linear;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
}

#fb-login-button {
    position: absolute;
    top:50px;
}

#fb-logout-button {
    position: absolute;
    top:75px;
}

#connect-form {
    text-align: center;    
    position: absolute;
    top: 45%; left: 50%;
    z-index: 15;
    margin-top: -34px;
    margin-left: -125px;
}

#fb-connect-button {
    border: none;
    cursor: pointer;
}

#fb-connect-button .image {
    background-image: url(../img/fb-connect-button.jpg);
    height: 67px; width: 250px;
}

#demo-form {
    text-align: center;    
    position: absolute;
    top: 60%; left: 50%;
    z-index: 14;
    margin-top: -25px;
    margin-left: -100px;
}

#demo-button {
    border: none;
    cursor: pointer;
}

#demo-button .image {
    background-image: url(../img/demo-button.jpg);
    height: 50px; width: 200px;
}

footer {
    position: fixed;
    z-index: 5;
    width: 100%; height: 60px;
    bottom:0; left:0;
    text-align: right;
    /*background-color: #183052;
    box-shadow: 0 -5px 10px #183052;*/
}

footer .left {
    display: inline-block;
    float: left;
    padding-left: 5px;
    padding-top: 5px;
    z-index: 100;
    cursor: pointer;
}

footer .right {
    display: inline-block;
    float: right;
    padding-right: 5px;
    padding-top: 5px;
    z-index: 100;
    cursor: pointer;
}

a.settings-trigger img {
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    -moz-transition-property: -moz-transform;
    -moz-transition-duration: 0.5s;
    -moz-transition-timing-function: ease-out;
    transition-property: transform;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#add-panel {
    display: inline-block;
    float: left;
    padding-left: 5px;
    padding-top: 20px;
    cursor: pointer;
}

#add-panel a {
    position: absolute;
    z-index: 21;
    -webkit-transition-property: visibility, opacity;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-property: visibility, opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#add-panel img {
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    -moz-transition-property: -moz-transform;
    -moz-transition-duration: 0.5s;
    -moz-transition-timing-function: ease-out;
    transition-property: transform;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#add-panel input {
    position: absolute;
    z-index: 20;
    width: 300px;
    visibility: hidden;
    margin-left: -10px;
    opacity: 0;
    -webkit-transition-property: margin-left, visibility, opacity;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-property: margin-left, visibility, opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#settings-panel {
    height: inherit;
    position: absolute;
    z-index: 50;
    top: 5px;
    -webkit-transition-property: right, visibility, opacity;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-property: right, visibility, opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#settings-panel #links-settings {
    display: inline-block;
    padding-right: 5px;
    padding-top: 5px;
    vertical-align: middle;
    cursor: pointer;
}

#settings-panel #nbposts-settings {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align: middle;
}

#nbposts-settings img {
    padding-top: 5px;
}

#nbposts-slider {
    padding-bottom: 5px;
}

#settings-panel #refresh-settings {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align: middle;
}

#refresh-settings img {
    padding-top: 5px;
    cursor: pointer;
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-property: transform;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

#refresh-slider {
    padding-bottom: 5px;
}

#settings-panel #sound-settings {
    display: inline-block;
    padding-left: 8px;
    /*padding-top: 5px;*/
    vertical-align: middle;
    cursor: pointer;
    height: 40px; width: 40px;
    /*background-image: url(../img/sound-off.gif);*/
}

input[type="range"] {
    position: relative;
    margin-left: 1em;
}
input[type="range"]:after,
input[type="range"]:before {
    position: absolute;
    top: 1em;
    color: #aaa;
}
input[type="range"]:before {
    left:0em;
    content: attr(min);
}
input[type="range"]:after {
    right: 0em;
    content: attr(max);
}

#fade {
    display: none;
    background: #000;
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: .80;
    z-index: 50;
}

.popup-block {
    background: #fff;
    padding: 20px;
    border: 20px solid #ddd;
    float: left;
    position: absolute;
    z-index: 80;
    -webkit-box-shadow: 0px 0px 20px #000;
    -moz-box-shadow: 0px 0px 20px #000;
    box-shadow: 0px 0px 20px #000;
}

#info-popup {
    display: none;
    position: fixed;
    height: 220px; width: 300px;
    left: 30px; bottom: 30px;
}

#info-popup p {
    text-align: justify;
    font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
    line-height: 1;
}

#facepile {
    margin-top: 10px;
}

#settings-popup {
    display:none;
    height: 250px; width: 300px;
    right: 30px; bottom: 30px;
}

#line-container {
    width: 100%; height: 100%;
    position: absolute;
    z-index: 0;
}

div.line{
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    height: 4px;
    background: #FF0000;
    box-shadow: 0 0 8px #FF0000;
    opacity: 0.7;
}